var WxParse = require('../../wxParse/wxParse.js');
const app = getApp();

Page({
  data: {
    id: 0,
    zhaji_detail: {}
  },
  onLoad(options) {
    this.data.id = options.id;
    this.zhajiDetail();
  },
  // 获取札记详情
  zhajiDetail() {
    app.ajax('index/zhajiDetail', { id: this.data.id }, res => {
      this.setData({ zhaji_detail: res });
      wx.setNavigationBarTitle({ title: res.title });
      app.rich_handle(res.content, WxParse, this);
    });
  }
});